import request from '@/utils/request'

// 查询列表
export function listT22(query) {
  return request({
    url: '/system/T22/list',
    method: 'get',
    params: query
  })
}

// 查询详细
export function getT22(ID) {
  return request({
    url: '/system/T22/' + ID,
    method: 'get'
  })
}

// 新增
export function addT22(data) {
  return request({
    url: '/system/T22',
    method: 'post',
    data: data
  })
}

// 修改
export function updateT22(data) {
  return request({
    url: '/system/T22/edit',
    method: 'post',
    data: data
  })
}

// 删除
export function delT22(ID) {
  return request({
    url: '/system/T22/' + ID,
    method: 'delete'
  })
}

// 敏感词类型查询
export function getSensitiveType() {
  return request({
    url: '/system/T22/findAll',
    method: 'get'
  })
}

// 查看用户权限
export function getPre(query) {
  return request({
    url: '/getPre',
    method: 'get',
    params: query,
  })
}
